from scrapy.cmdline import execute
import os
import sys

if __name__ == '__main__':
    sys.path.append(os.path.dirname(os.path.abspath(__file__)))
    execute(['scrapy', 'runspider', '-O', 'result.csv', 'scrapy_10k\spiders\spac10k.py'])
